package cn.hdufocus.focus_helper.service.impl;

import cn.hdufocus.focus_helper.dao.UserDao;
import cn.hdufocus.focus_helper.entity.User;
import cn.hdufocus.focus_helper.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User getUser(String username){
        return userDao.findByUsername(username);
    }
}